package com.qiangesoft.blog.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qiangesoft.blog.common.mvc.PageQuery;
import com.qiangesoft.blog.common.mvc.PageResultVO;
import com.qiangesoft.blog.system.entity.SysRole;

import java.util.List;

/**
 * <p>
 * 系统角色  服务类
 * </p>
 *
 * @author qiange
 * @since 2023-06-01
 */
public interface ISysRoleService extends IService<SysRole> {

    PageResultVO<SysRole> listRole(PageQuery pageQuery, String name);

    List<SysRole> listAllRole(String name);

    void insertRole(SysRole role);

    void updateRole(SysRole role);

    void deleteBatch(List<Long> ids);

    List<Long> getCurrentUserRole();

    List<Long> selectById(Long roleId);

    List<SysRole> listRoleByUserId(Long userId);
}
